// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@a/css/reset.css'
import '@a/css/common.css'
import '@a/font/iconfont.css'
import store from './store'
import { Message } from 'element-ui';

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.prototype.$message = Message

//接口
import http from '@/api/api.js' 
Vue.prototype.$http = http;

// 调用地图
import AMap from "vue-amap";
Vue.use(AMap);

AMap.initAMapApiLoader({
  key: "开发者申请的key", 
  plugin: ["AMap.Scale", "AMap.OverView", "AMap.ToolBar", "AMap.MapType"],
  uiVersion: "1.0.11", // ui库版本，不配置不加载,
  v: "1.4.4"
});



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
